home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Devices and Hardware / Velocity Engine / VelEng Wavelet / source / CBasicApp.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  3.3 KB  |  79 lines  |  [TEXT/CWIE]

  1. /*
  2.     Disclaimer:    IMPORTANT:  This Apple software is supplied to you by Apple Computer, Inc.
  3.                 ("Apple") in consideration of your agreement to the following terms, and your
  4.                 use, installation, modification or redistribution of this Apple software
  5.                 constitutes acceptance of these terms.  If you do not agree with these terms,
  6.                 please do not use, install, modify or redistribute this Apple software.
  7.  
  8.                 In consideration of your agreement to abide by the following terms, and subject
  9.                 to these terms, Apple grants you a personal, non-exclusive license, under Apple’s
  10.                 copyrights in this original Apple software (the "Apple Software"), to use,
  11.                 reproduce, modify and redistribute the Apple Software, with or without
  12.                 modifications, in source and/or binary forms; provided that if you redistribute
  13.                 the Apple Software in its entirety and without modifications, you must retain
  14.                 this notice and the following text and disclaimers in all such redistributions of
  15.                 the Apple Software.  Neither the name, trademarks, service marks or logos of
  16.                 Apple Computer, Inc. may be used to endorse or promote products derived from the
  17.                 Apple Software without specific prior written permission from Apple.  Except as
  18.                 expressly stated in this notice, no other rights or licenses, express or implied,
  19.                 are granted by Apple herein, including but not limited to any patent rights that
  20.                 may be infringed by your derivative works or by other works in which the Apple
  21.                 Software may be incorporated.
  22.  
  23.                 The Apple Software is provided by Apple on an "AS IS" basis.  APPLE MAKES NO
  24.                 WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
  25.                 WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  26.                 PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
  27.                 COMBINATION WITH YOUR PRODUCTS.
  28.  
  29.                 IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
  30.                 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  31.                 GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  32.                 ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
  33.                 OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
  34.                 (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
  35.                 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  36. */
  37.  
  38. #pragma once
  39.  
  40. #include <PP_Prefix.h>
  41. #include <LApplication.h>
  42.  
  43.  
  44. class    CBasicApp : public PP_PowerPlant::LApplication {
  45.  
  46. public:
  47.  
  48.         enum {
  49.             cmd_openRaw = 'ORaw'
  50.         };
  51.         
  52.                             CBasicApp();        // constructor registers PPobs
  53.         virtual                ~CBasicApp();        // stub destructor
  54.     
  55.     
  56.         // this overriding method handles application commands
  57.         virtual Boolean        ObeyCommand(PP_PowerPlant::CommandT inCommand, void* ioParam);    
  58.     
  59.     
  60.         // this overriding method returns the status of menu items
  61.         virtual void        FindCommandStatus(PP_PowerPlant::CommandT inCommand,
  62.                                     Boolean &outEnabled, Boolean &outUsesMark,
  63.                                     PP_PowerPlant::Char16 &outMark, Str255 outName);
  64. protected:
  65.  
  66.         virtual void        StartUp();            // override startup functions
  67.  
  68.         void                DoNew32Bit();
  69.  
  70.         void                NewWindowWithData(const PixMap &pmap, Handle data, long paddedX, long paddedY);
  71.         
  72.         void                ShowDifference(Handle h1, Handle h2, long x, long y);
  73.         
  74.         void                DoNewJPEG();
  75.  
  76.         virtual void        ShowAboutBox();
  77.         
  78. };
  79.